define(function(require, exports, module) {
    var ALL = require("../../common/all"),
        CONFIG = ALL.CONFIG,
        METHOD = ALL.METHOD,
        Init = ALL.Init;


    var _vm = Init.initVue({
        data : {
            disabled : false,
            list : [],
            detail : null,
            param_info : null,
        },
        methods: {
        }
    });

    var id = METHOD.getQueryParms("id");
    var type = METHOD.getQueryParms("type");

    if (id) {
        METHOD.loading.show();
        METHOD.ajax("collection/detail",{col_id: id}).done(function(json){
            METHOD.loading.hide();
            _vm.detail = json.data.detail;
            _vm.param_info = json.data.param_info;
            _vm.list = json.data.param_info.publisher;
        }).fail(function(){
            METHOD.loading.hide();
        })
    }

    if (type) {
        _vm.disabled = false;
    } else {
        _vm.disabled = true;
    }
});

